package com.yanjr.modules.cms.entity;

import java.util.Date;

import org.springframework.stereotype.Component;

import com.yanjr.common.Constants;
import com.yanjr.common.persistence.DataEntity;
import com.yanjr.common.persistence.Annotation.Column;
import com.yanjr.common.persistence.Annotation.Database;
import com.yanjr.common.persistence.Annotation.Table;
import com.yanjr.modules.sys.entity.User;

/**
 * 留言Entity
 * @ClassName: Guestbook 
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author yanjr  2016年5月25日 下午4:29:52
 */
@Database("jeesite")
@Table("cms_guestbook")
@Component
public class Guestbook extends DataEntity<Guestbook> {
	
	private static final long serialVersionUID = 1L;
	
	@Column("id")
	private String id; 		// 编号
	@Column("type")
	private String type; 	// 留言分类（咨询、建议、投诉、其它）
	@Column("content")
	private String content; // 留言内容
	@Column("name")
	private String name; 	// 姓名
	@Column("email")
	private String email; 	// 邮箱
	@Column("phone")
	private String phone; 	// 电话
	@Column("workunit")
	private String workunit;// 单位
	@Column("ip")
	private String ip; 		// 留言IP
	@Column("create_date")
	private Date createDate;// 留言时间
	@Column("re_user_id")
	private String reUserId;
	private User reUser; 		// 回复人
	@Column("re_date")
	private Date reDate;	// 回复时间
	@Column("re_content")
	private String reContent;// 回复内容
	@Column("del_flag")
	private String delFlag;	// 删除标记删除标记（0：正常；1：删除；2：审核）

	public Guestbook() {
		this.delFlag = Constants.DEL_FLAG_AUDIT;
	}

	public Guestbook(String id){
		this();
		this.id = id;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getWorkunit() {
		return workunit;
	}

	public void setWorkunit(String workunit) {
		this.workunit = workunit;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public User getReUser() {
		return reUser;
	}

	public void setReUser(User reUser) {
		this.reUser = reUser;
	}

	public String getReContent() {
		return reContent;
	}

	public void setReContent(String reContent) {
		this.reContent = reContent;
	}

	public Date getReDate() {
		return reDate;
	}

	public void setReDate(Date reDate) {
		this.reDate = reDate;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}
	
}


